<?php

use yii\helpers\Html;
use frontend\assets\AppAsset;
use yii\helpers\Url;
use app\models\User;

AppAsset::register($this);
?>
<?php $this->beginPage() ?>
<!DOCTYPE html>
<html lang="<?= Yii::$app->language ?>">
<head>
    <meta charset="<?= Yii::$app->charset ?>">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <?= Html::csrfMetaTags() ?>
    <title><?= Html::encode($this->title) ?></title>
    <?php $this->head() ?>
    <meta name="renderer" content="webkit">
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <link rel="icon" type="image/png" href="/assets/i/favicon.png">
    <link rel="apple-touch-icon-precomposed" href="/assets/i/app-icon72x72@2x.png">
    <meta name="apple-mobile-web-app-title" content="Amaze UI" />
    <link rel="stylesheet" href="/assets/css/amazeui.min.css" />
    <link rel="stylesheet" href="/assets/css/amazeui.datatables.min.css" />
    <link rel="stylesheet" href="/assets/css/app.css">


    <script src="/assets/js/jquery.min.js"></script>
    <script src="/assets/js/util.js"></script>

</head>

<?php $this->beginBody() ?>


<body>
<script src="/assets/js/theme.js"></script>
<div class="am-g tpl-g">

    <header>
        <!-- logo -->
        <div class="am-fl tpl-header-logo">
            <a href="javascript:;"><img src="/assets/img/logo.png" alt=""></a>
        </div>
        <!-- 右侧内容 -->
        <div class="tpl-header-fluid">
            <!-- 侧边切换 -->
            <div class="am-fl tpl-header-switch-button am-icon-list">
                    <span>

                </span>
            </div>
            <!-- 搜索 -->

            <!-- 其它功能-->
            <div class="am-fr tpl-header-navbar">
                <ul>
                    <!-- 欢迎语 -->
                    <li class="am-text-sm tpl-header-navbar-welcome">
                        <a href="javascript:;">欢迎你, <span><?=Yii::$app->user->identity->username?></span> </a>
                    </li>



                    <!-- 退出 -->
                    <li class="am-text-sm">
                        <a href="<?=Url::to(['site/logout'])?>">
                            <span class="am-icon-sign-out"></span> 退出
                        </a>
                    </li>
                </ul>
            </div>
        </div>

    </header>
<!-- 风格切换 -->
<div class="tpl-skiner">
    <div class="tpl-skiner-toggle am-icon-cog">
    </div>
    <div class="tpl-skiner-content">
        <div class="tpl-skiner-content-title">
            <?=Yii::t('app','Theme')?>
        </div>
        <div class="tpl-skiner-content-bar">
            <span class="skiner-color skiner-white" data-color="theme-white"></span>
            <span class="skiner-color skiner-black" data-color="theme-black"></span>

        </div>
    </div>
</div>
<div class="left-sidebar">
    <!-- 用户信息 -->
    <div class="tpl-sidebar-user-panel">
        <div class="tpl-user-panel-slide-toggleable">
            <div class="tpl-user-panel-profile-picture">
                <img src="/assets/img/user04.png" alt="">
            </div>
            <span class="user-panel-logged-in-text">
              <i class="am-icon-circle-o am-text-success tpl-user-panel-status-icon"></i>
                <?=Yii::$app->user->identity->username?>
          </span>

        </div>
    </div>

    <!-- 菜单 -->
    <ul class="sidebar-nav">

        <li class="sidebar-nav-link">
            <a href="javascript:;" class="sidebar-nav-sub-title">
                <i class="am-icon-table sidebar-nav-link-logo"></i> 操作员管理
                <span class="am-icon-chevron-down am-fr am-margin-right-sm sidebar-nav-sub-ico"></span>
            </a>
            <ul class="sidebar-nav sidebar-nav-sub">
                <li class="sidebar-nav-link">
                    <a href="<?=Url::to(['user/operator-list'])?>">
                        <span class="am-icon-angle-right sidebar-nav-link-logo"></span> 操作员列表
                    </a>
                </li>

                <li class="sidebar-nav-link">
                    <a href="<?=Url::to(['user/operator-add'])?>">
                        <span class="am-icon-angle-right sidebar-nav-link-logo"></span> 添加操作员
                    </a>
                </li>
            </ul>
        </li>
        <li class="sidebar-nav-link">
            <a href="javascript:;" class="sidebar-nav-sub-title">
                <i class="am-icon-table sidebar-nav-link-logo"></i> 居民管理
                <span class="am-icon-chevron-down am-fr am-margin-right-sm sidebar-nav-sub-ico"></span>
            </a>
            <ul class="sidebar-nav sidebar-nav-sub">
                <li class="sidebar-nav-link">
                    <a href="<?=Url::to(['customer/customer-list'])?>">
                        <span class="am-icon-angle-right sidebar-nav-link-logo"></span>居民列表
                    </a>
                </li>

                <li class="sidebar-nav-link">
                    <a href="<?=Url::to(['customer/customer-add'])?>">
                        <span class="am-icon-angle-right sidebar-nav-link-logo"></span> 添加居民
                    </a>
                </li>
            </ul>
        </li>
        <li class="sidebar-nav-link">
            <a href="javascript:;" class="sidebar-nav-sub-title">
                <i class="am-icon-table sidebar-nav-link-logo"></i> 垃圾分类管理
                <span class="am-icon-chevron-down am-fr am-margin-right-sm sidebar-nav-sub-ico"></span>
            </a>
            <ul class="sidebar-nav sidebar-nav-sub">
                <li class="sidebar-nav-link">
                    <a href="<?=Url::to(['category/list'])?>">
                        <span class="am-icon-angle-right sidebar-nav-link-logo"></span>垃圾分类列表
                    </a>
                </li>

                <li class="sidebar-nav-link">
                    <a href="<?=Url::to(['category/add'])?>">
                        <span class="am-icon-angle-right sidebar-nav-link-logo"></span> 添加垃圾分类
                    </a>
                </li>
            </ul>
        </li>
        <li class="sidebar-nav-link">
            <a href="javascript:;" class="sidebar-nav-sub-title">
                <i class="am-icon-table sidebar-nav-link-logo"></i> 回收订单管理
                <span class="am-icon-chevron-down am-fr am-margin-right-sm sidebar-nav-sub-ico"></span>
            </a>
            <ul class="sidebar-nav sidebar-nav-sub">
                <li class="sidebar-nav-link">
                    <a href="<?=Url::to(['order/list'])?>">
                        <span class="am-icon-angle-right sidebar-nav-link-logo"></span>回收订单列表
                    </a>
                </li>

                <li class="sidebar-nav-link">
                    <a href="<?=Url::to(['order/cancel-list'])?>">
                        <span class="am-icon-angle-right sidebar-nav-link-logo"></span> 作废订单列表
                    </a>
                </li>
            </ul>
        </li>
        <li class="sidebar-nav-link">
            <a href="javascript:;" class="sidebar-nav-sub-title">
                <i class="am-icon-table sidebar-nav-link-logo"></i> 兑换商品管理
                <span class="am-icon-chevron-down am-fr am-margin-right-sm sidebar-nav-sub-ico"></span>
            </a>
            <ul class="sidebar-nav sidebar-nav-sub">
                <li class="sidebar-nav-link">
                    <a href="<?=Url::to(['exchange-cate/list'])?>">
                        <span class="am-icon-angle-right sidebar-nav-link-logo"></span>兑换分类列表
                    </a>
                </li>

                <li class="sidebar-nav-link">
                    <a href="<?=Url::to(['exchange-cate/add'])?>">
                        <span class="am-icon-angle-right sidebar-nav-link-logo"></span> 新增分类
                    </a>
                </li>

                <li class="sidebar-nav-link">
                    <a href="<?=Url::to(['exchange-item/list'])?>">
                        <span class="am-icon-angle-right sidebar-nav-link-logo"></span>兑换商品列表
                    </a>
                </li>
                <li class="sidebar-nav-link">
                    <a href="<?=Url::to(['exchange-item/add'])?>">
                        <span class="am-icon-angle-right sidebar-nav-link-logo"></span> 新增商品
                    </a>
                </li>
            </ul>
        </li>
    </ul>
</div>
    <div class="tpl-content-wrapper">
<?= $content ?>
</div>

<script src="/assets/js/amazeui.min.js"></script>
<script src="/assets/js/app.js"></script>
<?php $this->endBody() ?>
</body>
</html>
<?php $this->endPage() ?>

